package com.xinqi.modules.homework.homework.convert;

import com.xinqi.modules.homework.homework.dto.rsp.CourseHomeworkStudentLogResultDTO;
import com.xinqi.modules.homework.homework.dto.req.CourseHomeworkStudentLogCreateDTO;
import com.xinqi.modules.homework.homework.dto.req.CourseHomeworkStudentLogUpdateDTO;
import com.xinqi.modules.homework.homework.domain.CourseHomeworkStudentLogEntity;
import com.xinqi.common.mapstruct.CommonConvertConfig;
import com.xinqi.modules.homework.homework.dto.rsp.CourseHomeworkStudentResultDTO;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

/**
 * 转换
 *
 * @author: system
 * @date: 2023/03/08
 */
@Mapper(config = CommonConvertConfig.class)
public abstract class CourseHomeworkStudentLogConvert {

    public abstract CourseHomeworkStudentLogEntity create(CourseHomeworkStudentLogCreateDTO s);

    public abstract CourseHomeworkStudentLogEntity update(CourseHomeworkStudentLogUpdateDTO s, @MappingTarget CourseHomeworkStudentLogEntity t);

    public abstract CourseHomeworkStudentLogEntity update(CourseHomeworkStudentLogUpdateDTO s);

    public abstract CourseHomeworkStudentLogResultDTO convert(CourseHomeworkStudentLogEntity s);

    public abstract CourseHomeworkStudentLogResultDTO convert(CourseHomeworkStudentLogResultDTO s);

    public abstract CourseHomeworkStudentResultDTO convert(CourseHomeworkStudentResultDTO courseHomeworkStudentResultDTO);

}
